#ifndef ADDROWNETWORKEVENT_H_
#define ADDROWNETWORKEVENT_H_

#include "NetworkEvent.h"

class AddRowNetworkEvent : public NetworkEvent
{
public:
    struct Data
    {
        long rowId;
        int rowNo;
    };

    struct Message
    {
        Header header;
        Data data;
    };

    AddRowNetworkEvent(long rowId, int rowNo);
    AddRowNetworkEvent(const Header& header, const Data& data);
    virtual ~AddRowNetworkEvent();

    virtual void visitWell(Well* well) const;

    virtual void* getMessageBlob();
    virtual size_t getMessageBlobSize();

private:
    Message message;
};

#endif
